package com.linkstec.bookshop.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.linkstec.bookshop.mapper.AdminMapper;
import com.linkstec.bookshop.pojo.Admin;
import com.linkstec.bookshop.service.AdminService;

@Service
public class AdminServiceImpl implements AdminService {

	@Autowired
	private AdminMapper adminMapper;

	@Override
	public Admin findAdminByNameAndPwd(Admin admin) throws RuntimeException {
		return adminMapper.findAdminByNameAndPwd(admin);
	}

}
